package cn.jiyun.controller;

import cn.jiyun.feign.CourseFeign;
import cn.jiyun.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 季乾帅
 * @create 2023/8/25 14:08
 */
@RestController
@RequestMapping("/course")
public class CourseController {

    @Autowired
    private CourseFeign courseFeign;

    /**
     * 查询课程信息
     * @return
     */
    @RequestMapping("/findKec")
    public Result findKec() {
        return courseFeign.findKec();
    }
}
